<div id="page-heading"><h1><?php echo sprintf(lang('files.edit_title'), $file->name); ?></h1></div>
<?php $this->load->view('partials/notices'); ?>
<?php echo form_open_multipart(site_url('admin/files/edit/'. $file->id), array('class' => 'form_inputs', 'id' => 'files_crud')); ?>
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top"><?php echo lang('files.name_label') ?><span class="require">*</span>:</th>
			<td><?php echo form_input('name', $file->name, 'class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('files.description_label') ?>:</th>
			<td><?php echo form_textarea(array(
					'name'	=> 'description',
					'id'	=> 'description',
					'value'	=> $file->description,
					'rows'	=> '3',
					'cols'	=> '50'
				)); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('file_folders.folder_label') ?>:</th>
			<td><?php echo form_dropdown('folder_id', array(0 => lang('files.dropdown_no_subfolders')) + $folders_tree, $file->folder_id, 'id="folder_id" class="select_box"');?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('files.file_label'); ?>:</th>
			<td><?php echo form_upload(array(
					'name'	=> 'userfile',
					'id'	=> 'userfile'
				)); ?></td>
			<td></td>
		</tr>
	<tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="submit" value="" class="form-submit" />
		</td>
		<td></td>
	</tr>
	</table>
<?php echo form_close(); ?>